package edu.siu.math.egut.egut;

/**
 * A class that represents an integer in LiE.
 * 
 * @author Joe Pleso
 *
 */
public class LiEInteger extends AbstractLiEObject {

    /**
     * 
     */
    private static final long serialVersionUID = 100L;
    private final String data;
    
    /**
     * Constructor for LiEInteger.
     * 
     * @param s the string from LiE
     */
    public LiEInteger(String s){
	super(LiEType.INT);
	data = s.trim();
    }
    
    @Override
    public Object getJavaObject() {

	return Integer.parseInt(data);
    }
    
    public String toString(){
	
	return data;
    }
    
    

}
